on exitFrame me _movie.go(_movie.frame) end -- -- This behavior traces the key typed into the message window. -- By modifying the keys and the handler that is called when -- the key is typed, you can use this method to control events -- in a movie. This behavior should be placed in a frame script -- of a movie. -- Ken Loge - http://diginoodles.com -- -- check for keyboard input on keyUp me case _key.key of "a": reportKey("a", me) "b": reportKey("b", me) "c": reportKey("c", me) "d": reportKey("d", me) end case end -- print a message to the message window on reportKey whichKey, me reportString = "The" && QUOTE & whichKey & QUOTE && "key was pressed." trace(reportString) end